package net.caixiaomi.info.adapter;

import net.caixiaomi.info.R;
import net.caixiaomi.info.base.quickadapter.BaseQuickAdapter;
import net.caixiaomi.info.base.quickadapter.BaseViewHolder;
import net.caixiaomi.info.model.OpenPrizeDetailNumEntity;


/**
 * Created by mac on 2018/9/7.
 */

public class OpenPrizeDetailAdapter extends BaseQuickAdapter<OpenPrizeDetailNumEntity, BaseViewHolder> {


    public OpenPrizeDetailAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, OpenPrizeDetailNumEntity item) {
        try {
            helper.setText(R.id.reward_name,item.getRewardLevelName());
            helper.setText(R.id.reward_num,item.getRewardNum());
            helper.setText(R.id.reward_price,item.getRewardPrice());
        }catch (Exception e){

        }
    }
}
